
<div id="test">
  <button onclick="test()">go to baidu</button>
</div>


<script>
  function test(){
    // alert("hasaki");
    self.location.href="https://www.baidu.com"
  }
</script>
